package com.jueming.miser.user.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jueming.miser.common.utils.PageUtils;
import com.jueming.miser.common.utils.Query;

import com.jueming.miser.user.dao.MiserUserDao;
import com.jueming.miser.user.entity.MiserUserEntity;
import com.jueming.miser.user.service.MiserUserService;


@Service("miserUserService")
public class MiserUserServiceImpl extends ServiceImpl<MiserUserDao, MiserUserEntity> implements MiserUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MiserUserEntity> page = this.page(
                new Query<MiserUserEntity>().getPage(params),
                new QueryWrapper<MiserUserEntity>()
        );

        return new PageUtils(page);
    }

}